using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace B.S.Database.Read.Api.Controllers
{
    /// <summary>
    /// 测试控制器
    /// </summary>
    [ApiController]
    [Route("api/[controller]")]
    [Authorize]
    public class TestController : ControllerBase
    {
        /// <summary>
        /// 测试页面
        /// </summary>
        [HttpGet]
        public IActionResult Index()
        {
            return Redirect("/verifycode-demo.html");
        }

        /// <summary>
        /// 健康检查
        /// </summary>
        [HttpGet("health")]
        public IActionResult Health()
        {
            return Ok(new { status = "healthy", timestamp = DateTime.UtcNow });
        }
    }
} 